package cn.lb.permission.service.impl;


import cn.lb.basic.service.impl.BaseServiceImpl;
import cn.lb.permission.domain.Menu;
import cn.lb.permission.domain.Permission;
import cn.lb.permission.mapper.MenuMapper;
import cn.lb.permission.query.PermissionQuery;
import cn.lb.permission.service.IMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl extends BaseServiceImpl<Menu> implements IMenuService {

    @Autowired
    private MenuMapper menuMapper;


    @Override
    public List<Menu> tree() {


        return menuMapper.selectmenus();
    }

    @Override
    public List<Menu> list(Long userId) {

        return menuMapper.selectMenu(userId);
    }
}
